package com.jcf.springboot.service;

import org.springframework.amqp.core.Message;
import org.springframework.stereotype.Service;

/**
 * @author ${chaofan.ji}
 * @since 2025/4/26
 */
@Service
public class RabbitConsumer {

//  @RabbitListener(queues = {"${queueA}"})
  public void readString(Message message){
    System.out.println("======================================================");
    String content = new String(message.getBody());
    System.out.println(content);
  }

}
